<h1>Poll toevoegen</h1>
<?php
	if(isset($addMsg))
	{
		echo $addMsg;
	}
?>
<form method="post" action="pollbeheer/add">
	<table>
		<tr></tr>
		<tr>
			<td width="50%"><strong>Vraag:</strong></td>
			<td><input name="question" value="<?php echo $question?>"></td>
		</tr>
		<tr>
			<th colspan="2">Antwoorden (minimaal 2 opties):</th>
		</tr>
		<tr></tr>
		<tr>
			<td width="50%"><strong>Antwoord 1:</strong></td>
			<td><input name="answer[]" value="<?php echo $answer[0]?>"></td>
		</tr>
		<tr>
			<td width="50%"><strong>Antwoord 2:</strong></td>
			<td><input name="answer[]" value="<?php echo $answer[1]?>"></td>
		</tr>
		<tr>
			<td width="50%"><strong>Antwoord 3:</strong></td>
			<td><input name="answer[]" value="<?php echo $answer[2]?>"></td>
		</tr>
		<tr>
			<td width="50%"><strong>Antwoord 4:</strong></td>
			<td><input name="answer[]" value="<?php echo $answer[3]?>"></td>
		</tr>
		<tr>
			<td></td>
			<td><input name="addbutton" type="submit" value="Poll aanmaken" /></td>
		</tr>
	</table>
</form>